const panel = this.pageObj.getApiWidgetByAliasName('event-panel')?.widgetObj
const variables = this.pageObj.getVariables()
const process = variables.find(v => v.name === 'whether_process')?.value || 1
const search = variables.find(v => v.name === 'event_search' )?.value
const whetherEnable = variables.find(v => v.name === 'whetherEnable' )?.value || 0
const searchType = variables.find(v => v.name === 'searchType' )?.value || 2
this.getApiPage().setVariables([{name: 'panel_type', value: $event}])
const queryManage = this.pageObj.getApiWidgetByAliasName('queryManage')?.widgetObj
const params = {
    processType: Number(process), eventTitle: search, whetherEnable
}
if($event == 0) {
    panel._option.panel_config.openPage = false
    params.searchType === searchType
} else {
    panel._option.panel_config.openPage = true
}
queryManage.queryData(params, $event).then(data => {
    const expand = panel.getExpandSelected();
    expand.clear()
    panel.setData([{ data }])
    panel.render()
})
